from django.conf.urls.defaults import*
from django.views.static import serve
from django.contrib import admin
# Uncomment the next two lines to enable the admin:

admin.autodiscover()

urlpatterns = patterns('',
                       (r'admin',include(admin.site.urls)),
                       (r'(?P<path>.*jpg)$','django.views.static.serve',{'document_root':'C:/SDD/trunk/image'}),
                       (r'profile/(?P<u_ser>.+)/uploadprofilepic$','cartoon_us.user_profile.views.uploadpic'),
                       (r'^$','cartoon_us.home.views.blank'),
                       (r'^registration$','cartoon_us.accounts.views.registration'),
                       (r'^comics/(?P<title>[^/]+)$','cartoon_us.gallery.views.specificcomic'),
                       (r'accounts/login$','cartoon_us.accounts.views.log_in'),
                       (r'profile/rate/(?P<user>.+)$','cartoon_us.user_profile.views.rate'),
                       (r'accounts/logout$','cartoon_us.accounts.views.log_out'),
                       (r'createClan', 'cartoon_us.clan.views.create'),
                       (r'^clan/(?P<clanName>[^/]+)$','cartoon_us.clan.views.showClan'),
                       (r'^home$','cartoon_us.home.views.default'),
                       (r'^illustration/(?P<title>[^/]+)$','cartoon_us.gallery.views.specificillustration'),
                       (r'^fiction/(?P<title>[^/]+)$','cartoon_us.gallery.views.specificfiction'),
                       (r'clan/(?P<clanName>[^/]+)/join$','cartoon_us.clan.views.join'),
                       (r'^list/(?P<kind>[^/]+)$','cartoon_us.people.views.nopage'),
                       (r'^list/(?P<kind>[^/]+)/(?P<page>\d+)$','cartoon_us.people.views.show'),
                       (r'upload','cartoon_us.gallery.views.upload'),
                       (r'^(?P<on>.+)/(?P<user>[^/]+)/comment','cartoon_us.user_profile.views.Comment'),
                       (r'profile/(?P<u_ser>[^/]+)$','cartoon_us.user_profile.views.my'),
                       (r'profile/add/(?P<u_ser>.+)$','cartoon_us.user_profile.views.add'),
                       (r'(?P<path>.*png)$','django.views.static.serve',{'document_root':'C:/SDD/trunk/image'}),
                       (r'(?P<path>.*css)$','django.views.static.serve',{'document_root':'C:/SDD/trunk/template'}),
                       (r'profile/(?P<user>[^/]+)$','cartoon_us.comment.views.post_comment'),
                       (r'illustration/rate/(?P<t_itle>.+)$','cartoon_us.gallery.views.rateArtWork'),
                       (r'comics/rate/(?P<t_itle>.+)$','cartoon_us.gallery.views.rateComic'),
                       (r'fiction/rate/(?P<t_itle>.+)$','cartoon_us.gallery.views.rateWrittenWork'),


    # Example:
    # (r'^cartoon_us/', include('cartoon_us.foo.urls')),

    # Uncomment the admin/doc line below and add 'django.contrib.admindocs' 
    # to INSTALLED_APPS to enable admin documentation:
    # (r'^admin/doc/', include('django.contrib.admindocs.urls')),

    # Uncomment the next line to enable the admin:
    # (r'^admin/',include(admin.site.urls)),
    
)
